package com.great.start;
import com.xiaoleilu.hutool.cron.CronUtil;

/**
 * 入口方法
 * @author Administrator
 *
 */
public class MainRun {
	
	public static void main(String[] args) {
		
		Util.print_sys("执行项目");
		String message = "";
		try {
			message = args[0];
			distribution(message);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	public static void distribution(String message){
		Util.print_sys("获取参数:"+message);
		
		switch (message) {
		case "test":
			AlarmClock ac = new AlarmClock();
			String AlarmClock_time =  GetProperties.getName("AlarmClock_time");
			CronUtil.schedule(AlarmClock_time,ac);
			CronUtil.restart();
			break;
		default:
			break;
		}
	}
	
	
}
